﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    internal class FileNameStrategy : IFileNameStrategy
    {
        private const int FileNameLengthInHex = 16; // 或根据需要调整长度

        public string GenerateFileName(long offset)
        {
            return $"{offset.ToString().PadLeft(FileNameLengthInHex, '0')}.log";
        }
    }
}
